package work1.work3.student;

public abstract class Student {
    String type;
    String name;
    String courseGrade;
    float[] courses;
    final int coursenum=3;
    Student(){

    }
    Student(String name){
        this.name = name;
        courses=new float[coursenum];
    }


    public void setCourses(float[] courses) {
        this.courses = courses;
    }

    public float[] getCourses() {
        return courses;
    }

    public void setCourseGrade(String courseGrade) {
        this.courseGrade = courseGrade;
    }

    public String getCourseGrade() {
        return courseGrade;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }



    public abstract String calculateGrade();/*计算等级*/
}
